package com.emagic.manage.modules.main.domain;

import com.emagic.manage.data.entities.response.OutOffResponse;
import com.emagic.manage.data.repository.Repository;
import com.emagic.manage.mvp.domain.UseCase;

import javax.inject.Inject;

import rx.Observable;

/**
 * Created by xiatian on 2017/11/8.
 */

public class GetJoinRoomUserCase extends UseCase<OutOffResponse> {
    private Repository mRepository;
    private String serial;

    @Inject
    public GetJoinRoomUserCase(Repository repository) {
        this.mRepository = repository;
    }

    public void setSerial(String serial) {
        this.serial = serial;
    }

    @Override
    protected Observable<OutOffResponse> buildObservable() {
        return mRepository.getroom(serial);
    }
}
